<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <title>node节点</title>
    </head>
    <body>
        <h1>后盾人</h1>
        <script>
            // 查找节点，不要忽略文本节点
            console.log(document.childNodes[1].childNodes[2].childNodes[1]);
            // 查找节点的类型
            console.log(document.childNodes[1].childNodes[2].childNodes[1].nodeType);
        </script>
    </body>
</html>